package com.ndd.dto;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class CartDTO {
    //用户id
//    private Integer userId;
    //商品id
    @NotNull(message = "商品id不能为空")
    private Integer productId;
    //数量
    @Min(value = 1,message = "数量不能少于一个")
    private Integer num;
}
